package com.wkl.utils;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LogUtil {
    /**
     * @param msg
     * @description warn
     */
    public static void warn(String msg) {
        log.warn(msg);
    }

    public static void warn(String format, Object arg) {
        log.warn(format, arg);
    }

    public static void warn(String format, Object... arguments) {
        log.warn(format, arguments);
    }

    public static void warn(Object obj) {
        warn("{}", obj);
    }

    /**
     * @param msg
     * @description info
     */
    public static void info(String msg) {
        log.info(msg);
    }

    public static void info(String format, Object arg) {
        log.info(format, arg);
    }

    public static void info(String format, Object... arguments) {
        log.info(format, arguments);
    }

    public static void info(Object obj) {
        info("{}", obj);
    }

    /**
     * @param msg
     * @description debug
     */
    public static void debug(String msg) {
        log.debug(msg);
    }

    public static void debug(String format, Object arg) {
        log.debug(format, arg);
    }

    public static void debug(String format, Object... arguments) {
        log.debug(format, arguments);
    }

    public static void debug(Object obj) {
        debug("{}", obj);
    }

    /**
     * @param msg
     * @description error
     */
    public static void error(String msg) {
        log.error(msg);
    }

    public static void error(String format, Object arg) {
        log.error(format, arg);
    }

    public static void error(String format, Object... arguments) {
        log.error(format, arguments);
    }

    public static void error(Object obj) {
        error("{}", obj);
    }
}
